package com.gosling.cloudspace.common.entity.dtos;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class CalculatorVO {
    @NotEmpty(message = "借款金额不能为空")
    @ApiModelProperty("借款金额")
    private BigDecimal invest;
    @NotEmpty(message = "分期期数不能为空")
    @ApiModelProperty("分期期数")
    private Integer periodsNum;
    @NotEmpty(message = "年利率不能为空")
    @ApiModelProperty("年利率")
    private BigDecimal yearRate;
    @NotEmpty(message = "借款开始时间不能为空")
    @ApiModelProperty("借款开始时间")
    private LocalDate date;

    @ApiModelProperty("已有借款时间 取日号")
    private Integer oldRepayDate;
    @ApiModelProperty("融担年利率")
    private BigDecimal financingYearRate;
    @ApiModelProperty("融担分期数")
    private Integer financingPeriodsNum;
    @ApiModelProperty("还款日类型")
    private String repayDayType;
    @ApiModelProperty("还款日顺延间隔天数")
    private Integer repayDayPostpone = 15;

    private Integer userId;
    private String orderNo;

}
